Tighter Upper Bounds on the Exact Complexity of String Matching

نویسندگان

  • Richard Cole
  • Ramesh Hariharan
چکیده

This paper considers how many character comparisons are needed to find all occurrences of a pattern of length m in a text of length n. The main contribution is to show an upper bound of the form of n + O(n/m) character comparisons, following preprocessing. Specifically, we show an upper bound of n + 8 3(m+1) (n −m) character comparisons. This bound is achieved by an online algorithm which performs O(n) work in total and requires O(m) space and O(m2) time for preprocessing. The current best lower bound for online algorithms is n + 16 7m+27 (n −m) character comparisons for m = 16k+ 19, for any integer k ≥ 1, and for general algorithms is n+ 2 m+3 (n−m) character comparisons, for m = 2k + 1, for any integer k ≥ 1.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Tighter Lower Bounds on the Exact Complexity of String Matching

The paper considers the exact number of character comparisons needed to nd all occurrences of a pattern of length m in a text of length n using on-line and general algorithms. For on-line algorithms, a lower bound of about (1 + 9 4(m+1)) n character comparisons is obtained. For general algorithms, a lower bound of about (1 + 2 m+3) n character comparisons is obtained. These lower bounds complem...

متن کامل

New Upper Bounds for the Computation of Complementary Error Function

In this article we provide tighter upper bounds for complementary error function which is a monotonically decreasing function widely used in communication theory. The provided bounds approach the exact value in the limiting case. The derivation of the bounds are based on the monotonically increasing property of exponential function used in complementary error function.

متن کامل

On the Comparison Complexity of the String Prefix-Matching Problem

In this paper we study the exact comparison complexity of the string prefix-matching problem in the deterministic sequential comparison model with equality tests. We derive almost tight lower and upper bounds on the number of symbol comparisons required in the worst case by on-line prefix-matching algorithms for any fixed pattern and variable text. Unlike previous results on the comparison comp...

متن کامل

String Range Matching

Given strings X and Y the exact string matching problem is to find the occurrences of Y as a substring of X. An alternative formulation asks for the lexicographically consecutive set of suffixes of X that begin with Y. We introduce a generalization called string range matching where we want to find the suffixes of X that are in an arbitrary lexicographical range bounded by two strings Y and Z. ...

متن کامل

On the Eccentric Connectivity Index of Unicyclic Graphs

In this paper, we obtain the upper and lower bounds on the eccen- tricity connectivity index of unicyclic graphs with perfect matchings. Also we give some lower bounds on the eccentric connectivity index of unicyclic graphs with given matching numbers.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • SIAM J. Comput.

دوره 26  شماره 

صفحات  -

تاریخ انتشار 1997